<template>
  <div class="infor_line" :class="noborder?'noborder':''">
    <div class="infor_title">
        <span v-if="important" class="infor_important">*</span>
        {{title}}
    </div>
    <div class="infor_value">
        {{value}}
    </div>
    <img  v-if="arrow" class="infor_icon" src="./images/u252.png"/>
  </div>
</template>

<script>
  export default {
    name: 'infor-line',
    props: {
      title: {
        type: String,
        default: ''
      },
      value: {
        type: String,
        default: ''
      },
      arrow: {
        type: Boolean,
        default: false
      },
      important: {
        type: Boolean,
        default: false
      },
      noborder: {
          type: Boolean,
          default: false
      },
      show: {
        type: Boolean,
        default: true
      },

    },
    data() {
      return {
      }
    },
    methods:{
      onTap(){
      }
    }
  }
</script>

<style type="text/scss" lang="scss" scoped>
  .infor_line {
    width: 100%;
    padding: 7px 0;
    line-height: 26px;
    box-sizing: border-box;
    border-bottom: 1px solid #e5e5e5;
    overflow: hidden;
    position: relative;
    &.noborder{
        border-bottom: none;
    }
    .infor_important{
        color: red;
    }
    .infor_title {
      width: 40%;
      text-align: right;
      float: left;
      padding-right: 10px;
    }
    .infor_value {
      width: 60%;
      float: left;
      text-align: left;
    }
    .infor_icon {
        position: absolute;
        width: 20px;
        height: 20px;
        top: 10px;
        right: 0px;
    }
  }
</style>
